using Rsd.Dudu;
using Rsd.Dudu.ModelProvider;
using Rsd.Dudu.ORM;
using Rsd.Faith.Core;
using Rsd.Faith.Report;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Rsd.Faith.Models
{
    /// <summary>
    /// 
    /// </summary>
    [Table("report_银行账目", "report__yin_hang_zhang_mu", "id")]
    [Serializable]
    public class ReportYinHangZhangMuModel : Rsd.Faith.Core.ModelBase
    {

        /// <summary>
        /// 银行账号
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("yin_hang_zhang_hao", "银行账号", 20, 50)]
        [DisplayName("银行账号")]
        public string YinHangZhangHao { get; set; }

        /// <summary>
        /// 所属期
        /// </summary>
        [StringType("suo_shu_qi", "所属期", 22, 20)]
        [DisplayName("所属期")]
        public string SuoShuQi { get; set; }

        /// <summary>
        /// 期初金额 
        /// </summary>
        [NumericType("qi_chu_jin_e", "期初金额", 23, 20, 2)]
        [DisplayName("期初金额")]
        public decimal QiChuJinE { get; set; }

        /// <summary>
        /// 收入金额
        /// </summary>
        [NumericType("shou_ru_jin_e", "收入金额", 24, 10, 3)]
        [DisplayName("收入金额")]
        public decimal ShouRuJinE { get; set; }

        /// <summary>
        /// 支出金额
        /// </summary>
        [NumericType("zhi_chu_jin_e", "支出金额", 26, 10, 3)]
        [DisplayName("支出金额")]
        public decimal ZhiChuJinE { get; set; }
         
        /// <summary>
        /// 
        /// </summary>
        [NumericType("yu_e", "余额", 28, 10, 3)]
        [DisplayName("余额")]
        public decimal YuE { get; set; }
         
        /// <summary>
        /// 资金类型
        /// </summary>
        [StringType("zi_jin_lei_xing", "资金类型", 36, 20)]
        [DisplayName("资金类型")]
        public ZiJinLeiXing ZiJinLeiXing { get; set; }

        /// <summary>
        ///  记账中，已扎帐（核算）
        /// </summary>
        [StringType("zhuang_tai", "状态", 38, 10)]
        [DisplayName("状态")]
        public ZhangMuZhuangTai ZhuangTai { get; set; }

        public ReportYinHangZhangMuModel()
        { }

    }
}
